<!DOCTYPE HTML>
<html>
<head>
    <meta charset="utf-8">
    <meta name="renderer" content="webkit|ie-comp|ie-stand">
    <meta http-equiv="X-UA-Compatible" content="IE=edge,chrome=1">
    <meta name="viewport" content="width=device-width,initial-scale=1,minimum-scale=1.0,maximum-scale=1.0,user-scalable=no" />
    <meta http-equiv="Cache-Control" content="no-siteapp" />
    <link rel="stylesheet" type="text/css" href="__CSS__/main.css" />
    <link rel="stylesheet" type="text/css" href="__CSS__/common.css" />
    <link rel="stylesheet" type="text/css" href="__CSS__/bootstrap.min.css" />
    <script type="text/javascript" src="__EXTEND__/lib/jquery/1.9.1/jquery.min.js"></script>
    <script type="text/javascript" src="__EXTEND__/js/bootstrap.min.js"></script>
    <script type="text/javascript" src="__EXTEND__/lib/layer/2.4/layer.js"></script>
    <![endif]-->
    <title></title>
</head>
<body>
<div class="contant">
<div class="row">
        <div class="top">首页>审批申请</div>
        <div class="content complete_info">
            <ul class="nav nav-tabs" role="tablist" style="position: relative;">
                <li role="presentation" class="active"><a href="#aaa" aria-controls="aaa" role="tab" data-toggle="tab">第一年</a></li>
                <li role="presentation"><a href="#bbb" aria-controls="bbb" role="tab" data-toggle="tab">第二年</a></li>
                <li role="presentation"><a href="#ccc" aria-controls="ccc" role="tab" data-toggle="tab">第三年</a></li>
            </ul>
            <div class="form-horizontal tab-content" >
                <!--基本信息左内容区-->
                <div class="fl">
                    
                    <div role="tabpanel" class="tab-pane box active" id="aaa">
                     <form action="{:U('Insurance/edit')}" method="post" id='one_year'>
                        <div class="list-block" id="advance-info">
                            <div class="form-group">     
                               <label class="col-sm-1 control-label no-padding-right" for="form-field-1">新保/续保</label>
                               <select name="type" class="myCss col-xs-10 col-sm-2">    
                                 <option value='1' <if condition="$info.type eq 1"> selected="selected" </if>>新保</option>
                                 <option value='2' <if condition="$info.type eq 2"> selected="selected" </if>>续保</option>
                               </select>    
                            </div>
                            <div class="form-group">
                             <label class="col-sm-1 control-label no-padding-right" for="form-field-1">商业险</label>
                              <select name='business_id' class="myCss col-xs-10 col-sm-2">
                                   <volist name='company_list' id='company'>
                                     <option value='{$company.id}' <eq name='company.id' value='$info.business_cid'>selected</eq>>{$company.company_name}</option>
                                   </volist>
                               </select>
                             <label class="col-sm-1 control-label no-padding-right" for="form-field-1">保单号</label>
                             <input type="text"  class="myCss col-xs-10 col-sm-2" name="business_warranty" value={$info.business_warranty} > 

                             <label class="col-sm-1 control-label no-padding-right"  for="form-field-1">商业险起始日</label>
                              <input type="date" class="myCss col-xs-10 col-sm-2" name="business_create_time" value="<empty name='info.business_create_time'>{:date('Y-m-d')}<else/>{$info.business_create_time|date='Y-m-d', ###}</empty>">

                             <label class="col-sm-1 control-label no-padding-right"  for="form-field-1">商业险到期日</label>
                                <input type="date" class="myCss col-xs-10 col-sm-2" name="business_end_time" value="<empty name='info.business_end_time'>{:date('Y-m-d')}<else/>{$info.business_end_time|date='Y-m-d', ###}</empty>">

                            </div>
                            <div class="form-group">
                             <label class="col-sm-1 control-label no-padding-right" for="form-field-1">交强险</label>
                             <select name='compulsory_id' class="myCss col-xs-10 col-sm-2">
                                   <volist name='company_list' id='company'>
                                     <option value='{$company.id}' <eq name='company.id' value='$info.compulsory_cid'>selected</eq>>{$company.company_name}</option>
                                   </volist>
                               </select>
                             <label class="col-sm-1 control-label no-padding-right" for="form-field-1">保单号</label>
                             <input type="text"  class="myCss col-xs-10 col-sm-2" name="compulsory_warranty" value={$info.compulsory_warranty} >
                             <label class="col-sm-1 control-label no-padding-right"  for="form-field-1">交强险起始日</label>
                             <input type="date" class="myCss col-xs-10 col-sm-2" name="compu_create_time" value="<empty name='info.compu_create_time'>{:date('Y-m-d')}<else/>{$info.compu_create_time|date='Y-m-d', ###}</empty>">
                             <label class="col-sm-1 control-label no-padding-right"  for="form-field-1">交强险到期日</label>
                             <input type="date" class="myCss col-xs-10 col-sm-2" name="compu_end_time" value="<empty name='info.compu_end_time'>{:date('Y-m-d')}<else/>{$info.compu_end_time|date='Y-m-d', ###}</empty>">

                            </div>

                            <div class="form-group">
                                <label class="col-sm-1 control-label no-padding-right" for="form-field-1">车辆损失险</label>
                                <input type="text" id="add1" class="myCss col-xs-10 col-sm-2" name="car_lose_insurance" value={$info.car_lose_insurance}>
                                <label class="col-sm-1 control-label no-padding-right" for="form-field-2">第三者责任险</label>
                                <input type="text" id="add2" class="myCss col-xs-10 col-sm-2"  name="third_liability_insurance" value={$info.third_liability_insurance}>
                                <label class="col-sm-1 control-label no-padding-right" for="form-field-1">车上人员险</label>
                                <input type="text" id="add3" class="myCss col-xs-10 col-sm-2" name="passenger_insurance" value={$info.passenger_insurance}>
                                
                            </div>

                            <div class="form-group">
                                <label class="col-sm-1 control-label no-padding-right" for="form-field-1">全车盗抢险</label>
                                <input type="text" id="add5" class="myCss col-xs-10 col-sm-2" name="full_car_theft" value={$info.full_car_theft}>
                                <label class="col-sm-1 control-label no-padding-right" for="form-field-2">自燃险</label>
                                <input type="text" id="add6" class="myCss col-xs-10 col-sm-2"  name="self_combustion" value={$info.self_combustion}>
                                <label class="col-sm-1 control-label no-padding-right" for="form-field-1">不计免赔特约险</label>
                                <input type="text" id="add7" class="myCss col-xs-10 col-sm-2" name="exclude_franchise_insurance" value={$info.exclude_franchise_insurance}>
                             
                            </div>

                            <div class="form-group">
                                <label class="col-sm-1 control-label no-padding-right" for="form-field-1">玻璃单碎险</label>
                                <input type="text" id="add9" class="myCss col-xs-10 col-sm-2" name="glass_breakage_insurance" value={$info.glass_breakage_insurance}>
                                <label class="col-sm-1 control-label no-padding-right" for="form-field-2">交强险</label>
                                <input type="text" id="add10" class="myCss col-xs-10 col-sm-2"  name="compulsory_insurance" value={$info.compulsory_insurance}>
                                <label class="col-sm-1 control-label no-padding-right" for="form-field-1">车辆划痕险</label>
                                <input type="text" id="add11" class="myCss col-xs-10 col-sm-2" name="car_scratch_insurance" value={$info.car_scratch_insurance}>
                               
                            </div>

                            <div class="form-group">
                                <label class="col-sm-1 control-label no-padding-right" for="form-field-1">车船险</label>
                                <input type="text" id="add13" class="myCss col-xs-10 col-sm-2" name="transport_insurance" value={$info.transport_insurance}>
                               
                                <label class="col-sm-1 control-label no-padding-right" for="form-field-1">商业险合计</label>
                                <input type="text" id="total-fee" class="myCss col-xs-10 col-sm-2" name="total_fee" value={$info.total_fee}>

                                <label class="col-sm-1 control-label no-padding-right"  for="form-field-1">出单日期</label>
                                <input type="date" class="myCss col-xs-10 col-sm-2" name="issue_time" value="<empty name='info.issue_time'>{:date('Y-m-d')}<else/>{$info.issue_time|date='Y-m-d', ###}</empty>">
                            </div>
                             <input type="hidden" id='type_status' name='type_status' value="" >
                             <input type="hidden" name='year' id='year' value=''>
                             <input type="hidden" name='user_id' value='{$user.id}'>
                             <input type="button" id='business' value="商业险" class="button01">
                             <input type="button" id='jiao' value="交强险" class="button01">
                             
                        </div>
                      </form>
                    </div> 
                    
                    <div role="tabpanel" class="tab-pane box" id="bbb">

                      <form action="{:U('Insurance/edit')}" method="post" id='type_year2'>
                        <div class="list-block" id="advance-info">
                            <div class="form-group">
                              
                               <label class="col-sm-1 control-label no-padding-right" for="form-field-1">新保/续保</label>
                               <select name="type" class="myCss col-xs-10 col-sm-2">
                                 <option value='1' <if condition="$info2.type eq 1"> selected="selected" </if>>新保</option>
                                 <option value='2' <if condition="$info2.type eq 2"> selected="selected" </if>>续保</option>
                               </select>
                              
                            </div>
                            <div class="form-group">
                             <label class="col-sm-1 control-label no-padding-right" for="form-field-1">商业险</label>
                               <select name='business_id' class="myCss col-xs-10 col-sm-2">
                                   <volist name='company_list' id='company'>
                                     <option value='{$company.id}' <eq name='company.id' value='$info2.business_cid'>selected</eq>>{$company.company_name}</option>
                                   </volist>
                               </select>
                             <label class="col-sm-1 control-label no-padding-right" for="form-field-1">保单号</label>
                             <input type="text"  class="myCss col-xs-10 col-sm-2" name="business_warranty" value={$info2.business_warranty}>

                             <label class="col-sm-1 control-label no-padding-right"  for="form-field-1">商业险起始日</label>
                              <input type="date" class="myCss col-xs-10 col-sm-2" name="business_create_time" value="<empty name='info2.business_create_time'>{:date('Y-m-d')}<else/>{$info2.business_create_time|date='Y-m-d', ###}</empty>">

                             <label class="col-sm-1 control-label no-padding-right"  for="form-field-1">商业险到期日</label>
                                <input type="date" class="myCss col-xs-10 col-sm-2" name="business_end_time" value="<empty name='info2.business_end_time'>{:date('Y-m-d')}<else/>{$info2.business_end_time|date='Y-m-d', ###}</empty>">

                            </div>
                            <div class="form-group">
                             <label class="col-sm-1 control-label no-padding-right" for="form-field-1">交强险</label>
                               <select name='compulsory_id' class="myCss col-xs-10 col-sm-2">
                                   <volist name='company_list' id='company'>
                                     <option value='{$company.id}' <eq name='company.id' value='$info2.compulsory_cid'>selected</eq>>{$company.company_name}</option>
                                   </volist>
                               </select>
                             <label class="col-sm-1 control-label no-padding-right" for="form-field-1">保单号</label>
                             <input type="text"  class="myCss col-xs-10 col-sm-2" name="compulsory_warranty" value={$info2.compulsory_warranty}>
                             <label class="col-sm-1 control-label no-padding-right"  for="form-field-1">交强险起始日</label>
                             <input type="date" class="myCss col-xs-10 col-sm-2" name="compu_create_time" value="<empty name='info2.compu_create_time'>{:date('Y-m-d')}<else/>{$info2.compu_create_time|date='Y-m-d', ###}</empty>">
                             <label class="col-sm-1 control-label no-padding-right"  for="form-field-1">交强险到期日</label>
                             <input type="date" class="myCss col-xs-10 col-sm-2" name="compu_end_time" value="<empty name='info2.compu_end_time'>{:date('Y-m-d')}<else/>{$info2.compu_end_time|date='Y-m-d', ###}</empty>">

                            </div>

                            <div class="form-group">
                                <label class="col-sm-1 control-label no-padding-right" for="form-field-1">车辆损失险</label>
                                <input type="text" id="two1" class="myCss col-xs-10 col-sm-2" name="car_lose_insurance" value={$info2.car_lose_insurance}>
                                <label class="col-sm-1 control-label no-padding-right" for="form-field-2">第三者责任险</label>
                                <input type="text" id="two2" class="myCss col-xs-10 col-sm-2"  name="third_liability_insurance" value={$info2.third_liability_insurance}>
                                <label class="col-sm-1 control-label no-padding-right" for="form-field-1">车上人员险</label>
                                <input type="text" id="two3" class="myCss col-xs-10 col-sm-2" name="passenger_insurance" value={$info2.passenger_insurance}>
                                
                            </div>

                            <div class="form-group">
                                <label class="col-sm-1 control-label no-padding-right" for="form-field-1">全车盗抢险</label>
                                <input type="text" id="two5" class="myCss col-xs-10 col-sm-2" name="full_car_theft" value={$info2.full_car_theft}>
                                <label class="col-sm-1 control-label no-padding-right" for="form-field-2">自燃险</label>
                                <input type="text" id="two6" class="myCss col-xs-10 col-sm-2"  name="self_combustion" value={$info2.self_combustion}>
                                <label class="col-sm-1 control-label no-padding-right" for="form-field-1">不计免赔特约险</label>
                                <input type="text" id="two7" class="myCss col-xs-10 col-sm-2" name="exclude_franchise_insurance" value={$info2.exclude_franchise_insurance}>
                             
                            </div>

                            <div class="form-group">
                                <label class="col-sm-1 control-label no-padding-right" for="form-field-1">玻璃单碎险</label>
                                <input type="text" id="two9" class="myCss col-xs-10 col-sm-2" name="glass_breakage_insurance" value={$info2.glass_breakage_insurance}>
                                <label class="col-sm-1 control-label no-padding-right" for="form-field-2">交强险</label>
                                <input type="text" id="two10" class="myCss col-xs-10 col-sm-2"  name="compulsory_insurance" value={$info2.compulsory_insurance}>
                                <label class="col-sm-1 control-label no-padding-right" for="form-field-1">车辆划痕险</label>
                                <input type="text" id="two11" class="myCss col-xs-10 col-sm-2" name="car_scratch_insurance" value={$info2.car_scratch_insurance}>
                               
                            </div>

                            <div class="form-group">
                                <label class="col-sm-1 control-label no-padding-right" for="form-field-1">车船险</label>
                                <input type="text" id="two13" class="myCss col-xs-10 col-sm-2" name="transport_insurance" value={$info2.transport_insurance}>
                               
                                <label class="col-sm-1 control-label no-padding-right" for="form-field-1">商业险合计</label>
                                <input type="text" id="total-fee_two" class="myCss col-xs-10 col-sm-2" name="total_fee" value={$info2.total_fee}>

                                <label class="col-sm-1 control-label no-padding-right"  for="form-field-1">出单日期123</label>
                                <input type="date" class="myCss col-xs-10 col-sm-2" name="issue_time" value="<empty name='info2.issue_time'>{:date('Y-m-d')}<else/>{$info2.issue_time|date='Y-m-d', ###}</empty>">
                            </div>
                            <input type="hidden" id='type_status2' name='type_status' value="" >
                             <input type="hidden" name='year' id='year2' value=''>
                             <input type="hidden" name='user_id' value='{$user.id}'>
                              <input type="button" id='business2' value="商业险" class="button01">
                            <input type="button" id='jiao2' value="交强险" class="button01">
                            
                        </div>
                            </form>
                    </div>
               

                    
                    <div role="tabpanel" class="tab-pane box" id="ccc">
                      <form action="{:U('Insurance/edit')}" method="post" id='type_year3'>
                      
                        <div class="list-block" id="advance-info">
                            <div class="form-group">
                              
                               <label class="col-sm-1 control-label no-padding-right" for="form-field-1">新保/续保</label>
                               <select name="type" class="myCss col-xs-10 col-sm-2">
                                 <option value='1' <if condition="$info3.type eq 1"> selected="selected" </if>>新保</option>
                                 <option value='2' <if condition="$info3.type eq 2"> selected="selected" </if>>续保</option>
                               </select>
                              
                            </div>
                            <div class="form-group">
                             <label class="col-sm-1 control-label no-padding-right" for="form-field-1">商业险</label>
                               <select name='business_id' class="myCss col-xs-10 col-sm-2">
                                   <volist name='company_list' id='company'>
                                     <option value='{$company.id}' <eq name='company.id' value='$info3.business_cid'>selected</eq>>{$company.company_name}</option>
                                   </volist>
                               </select>
                             <label class="col-sm-1 control-label no-padding-right" for="form-field-1">保单号</label>
                             <input type="text"  class="myCss col-xs-10 col-sm-2" name="business_warranty" value={$info3.business_warranty}>

                             <label class="col-sm-1 control-label no-padding-right"  for="form-field-1">商业险起始日</label>
                              <input type="date" class="myCss col-xs-10 col-sm-2" name="business_create_time" value="<empty name='info3.business_create_time'>{:date('Y-m-d')}<else/>{$info3.business_create_time|date='Y-m-d', ###}</empty>">

                             <label class="col-sm-1 control-label no-padding-right"  for="form-field-1">商业险到期日</label>
                                <input type="date" class="myCss col-xs-10 col-sm-2" name="business_end_time" value="<empty name='info3.business_end_time'>{:date('Y-m-d')}<else/>{$info3.business_end_time|date='Y-m-d', ###}</empty>">

                            </div>
                            <div class="form-group">
                             <label class="col-sm-1 control-label no-padding-right" for="form-field-1">交强险</label>
                               <select name='compulsory_id' class="myCss col-xs-10 col-sm-2">
                                   <volist name='company_list' id='company'>
                                     <option value='{$company.id}' <eq name='company.id' value='$info3.compulsory_cid'>selected</eq>>{$company.company_name}</option>
                                   </volist>
                               </select>
                             <label class="col-sm-1 control-label no-padding-right" for="form-field-1">保单号</label>
                             <input type="text"  class="myCss col-xs-10 col-sm-2" name="compulsory_warranty" value={$info3.compulsory_warranty}>
                             <label class="col-sm-1 control-label no-padding-right"  for="form-field-1">交强险起始日</label>
                             <input type="date" class="myCss col-xs-10 col-sm-2" name="compu_create_time" value="<empty name='info3.compu_create_time'>{:date('Y-m-d')}<else/>{$info3.compu_create_time|date='Y-m-d', ###}</empty>">
                             <label class="col-sm-1 control-label no-padding-right"  for="form-field-1">交强险到期日</label>
                             <input type="date" class="myCss col-xs-10 col-sm-2" name="compu_end_time" value="<empty name='info3.compu_end_time'>{:date('Y-m-d')}<else/>{$info3.compu_end_time|date='Y-m-d', ###}</empty>">

                            </div>

                            <div class="form-group">
                                <label class="col-sm-1 control-label no-padding-right" for="form-field-1">车辆损失险</label>
                                <input type="text" id="three1" class="myCss col-xs-10 col-sm-2" name="car_lose_insurance" value={$info3.car_lose_insurance}>
                                <label class="col-sm-1 control-label no-padding-right" for="form-field-2">第三者责任险</label>
                                <input type="text" id="three2" class="myCss col-xs-10 col-sm-2"  name="third_liability_insurance" value={$info3.third_liability_insurance}>
                                <label class="col-sm-1 control-label no-padding-right" for="form-field-1">车上人员险</label>
                                <input type="text" id="three3" class="myCss col-xs-10 col-sm-2" name="passenger_insurance" value={$info3.passenger_insuran ce}>
                                
                            </div>

                            <div class="form-group">
                                <label class="col-sm-1 control-label no-padding-right" for="form-field-1">全车盗抢险</label>
                                <input type="text" id="three5" class="myCss col-xs-10 col-sm-2" name="full_car_theft" value={$info3.full_car_theft}>
                                <label class="col-sm-1 control-label no-padding-right" for="form-field-2">自燃险</label>
                                <input type="text" id="three6" class="myCss col-xs-10 col-sm-2"  name="self_combustion" value={$info3.self_combustion}>
                                <label class="col-sm-1 control-label no-padding-right" for="form-field-1">不计免赔特约险</label>
                                <input type="text" id="three7" class="myCss col-xs-10 col-sm-2" name="exclude_franchise_insurance" value={$info3.exclude_franchise_insurance}>
                             
                            </div>

                            <div class="form-group">
                                <label class="col-sm-1 control-label no-padding-right" for="form-field-1">玻璃单碎险</label>
                                <input type="text" id="three9" class="myCss col-xs-10 col-sm-2" name="glass_breakage_insurance" value={$info3.glass_breakage_insurance}>
                                <label class="col-sm-1 control-label no-padding-right" for="form-field-2">交强险</label>
                                <input type="text" id="three10" class="myCss col-xs-10 col-sm-2"  name="compulsory_insurance" value={$info3.compulsory_insurance}>
                                <label class="col-sm-1 control-label no-padding-right" for="form-field-1">车辆划痕险</label>
                                <input type="text" id="three11" class="myCss col-xs-10 col-sm-2" name="car_scratch_insurance" value={$info3.car_scratch_insurance}>
                               
                            </div>

                            <div class="form-group">
                                <label class="col-sm-1 control-label no-padding-right" for="form-field-1">车船险</label>
                                <input type="text" id="three13" class="myCss col-xs-10 col-sm-2" name="transport_insurance" value={$info3.transport_insurance}>
                               
                                <label class="col-sm-1 control-label no-padding-right" for="form-field-1">商业险合计</label>
                                <input type="text" id="total-fee_three" class="myCss col-xs-10 col-sm-2" name="total_fee" value={$info3.total_fee}>

                                <label class="col-sm-1 control-label no-padding-right"  for="form-field-1">出单日期</label>
                                <input type="date" class="myCss col-xs-10 col-sm-2" name="issue_time" value="<empty name='info3.issue_time'>{:date('Y-m-d')}<else/>{$info3.issue_time|date='Y-m-d', ###}</empty>">
                            </div>
                            <input type="hidden" id='type_status3' name='type_status' value="" >
                            <input type="hidden" name='year' id='year3' value=''>
                            <input type="hidden" name='user_id' value='{$user.id}'>
                            <input type="button" id='business3' value="商业险" class="button01">
                            <input type="button" id='jiao3' value="交强险" class="button01">
                           
                        </div>
                      </form>
                    </div> 

                </div>

          </div>
        </div>
</div>
<script src="http://www.jq22.com/jquery/1.11.1/jquery.min.js"></script>
<script src="http://www.jq22.com/jquery/bootstrap-3.3.4.js"></script>
<script src="__PUBLIC__/Admin/js/distpicker.data.js"></script>
<script src="__PUBLIC__/Admin/js/distpicker.js"></script>
<script src="__PUBLIC__/Admin/js/main.js"></script>
<!-- 上传文件 -->
<script src="{:COM}js/ajaxfileupload.js"></script>


<script type="text/javascript">
//商业险提交
   $('#business').click(function(){
    var business_status={$info.business_status|default='0'};
    if(business_status==1){
        alert('商业险已确认不能更改');
        return false;
    }
    $('#type_status').val(1);
    $('#year').val(1);
    $('#one_year').submit();
   });
//交强险提交
   $('#jiao').click(function(){
    var compulsory_status={$info.compulsory_status|default='0'};
    if(compulsory_status==1){
        alert('交强险已确认不能更改');
        return false;
    }
    $('#type_status').val(2);
    $('#year').val(1);
    $('#one_year').submit();
   });

   //商业险提交
   $('#business2').click(function(){
    var business_status={$info2.business_status|default='0'};
    if(business_status==1){
        alert('商业险已确认不能更改');
        return false;
    }
    $('#type_status2').val(1);
    $('#year2').val(2);
    $('#type_year2').submit();
   });
//交强险提交
   $('#jiao2').click(function(){
    var compulsory_status={$info2.compulsory_status|default='0'};
    if(compulsory_status==1){
        alert('交强险已确认不能更改');
        return false;
    }
    $('#type_status2').val(2);
    $('#year2').val(2);
    $('#type_year2').submit();
   });

   //商业险提交
   $('#business3').click(function(){
    var business_status={$info3.business_status|default='0'};
    if(business_status==1){
        alert('商业险已确认不能更改');
        return false;
    }
    $('#type_status3').val(1);
    $('#year3').val(3);
    $('#type_year3').submit();
   });
//交强险提交
   $('#jiao3').click(function(){
    var compulsory_status={$info2.compulsory_status|default='0'};
    if(compulsory_status==1){
        alert('交强险已确认不能更改');
        return false;
    }
    $('#type_status3').val(2);
    $('#year3').val(3);
    $('#type_year3').submit();
   });


    $("input[id^='add']").change(function(){
        var sum=0;
        $("input[id^='add']").each(function(){
          var r = /^-?\d+$/ ;　//正整数
          if( $(this).val() !='' && isNaN($(this).val()) ){
           $(this).val("");  //正则表达式不匹配置空
          }else if($(this).val() !=''){
           sum += parseFloat($(this).val());
          }
          document.getElementById("total-fee").value=sum;
          });
    });

        $("input[id^='two']").change(function(){
        var sum=0;
        $("input[id^='two']").each(function(){
          var r = /^-?\d+$/ ;　//正整数
          if( $(this).val() !='' && isNaN($(this).val()) ){
           $(this).val("");  //正则表达式不匹配置空
          }else if($(this).val() !=''){
           sum += parseFloat($(this).val());
          }
          document.getElementById("total-fee_two").value=sum;
          });
    });

    $("input[id^='three']").change(function(){
        var sum=0;
        $("input[id^='three']").each(function(){
          var r = /^-?\d+$/ ;　//正整数
          if( $(this).val() !='' && isNaN($(this).val()) ){
           $(this).val("");  //正则表达式不匹配置空
          }else if($(this).val() !=''){
           sum += parseFloat($(this).val());
          }
          document.getElementById("total-fee_three").value=sum;
          });
    });

</script>